set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")

set_directory_properties(PROPERTIES COMPILE_DEFINITIONS_DEBUG "_DEBUG")

add_subdirectory(Plate)

add_subdirectory(Serial_Port)

link_directories(${PROJECT_SOURCE_DIR}/lib)

include_directories(${PROJECT_SOURCE_DIR}/inc/Plate)

include_directories(${PROJECT_SOURCE_DIR}/inc/Serial_Port)

set(Plate_LIBS Plate)

set(Serial_Port_LIBS Serial_Port)

add_executable(run main.cpp)

find_package(OpenCV REQUIRED)

target_link_libraries(run ${OpenCV_LIBS} ${Plate_LIBS} ${Serial_Port_LIBS})